<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../static/layui/css/layui.css"  media="all">

    <link rel="stylesheet" href="../static/css/style.css">
    <title>注册</title>
</head>
<body>
<!--form action="#" method="post" th:action="@{/register}" th:object="${RegisterForm}">
    <p>账号：<input th:field="*{username}"/></p>
    <p>密码：<input  type="password"  name="password" th:filed="*{password}"/></p>
    <p>确认密码：<input type="password"  name="repassword"  th:filed="*{repassword}"/></p>
    <input type="submit" value="submit">
</form>
<p><a th:href="@{/login}">若已注册账号，请登录</a></p-->
<div class="login-main">
    <header class="layui-elip">注册</header>
    <form th:action="@{/register}" method="post" class="layui-form" th:object="${RegisterForm}">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="text" th:field="*{username}" name="username" lay-verify="required" placeholder="账号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
        <div class="layui-input-inline">
            <input type="password" name="password" th:field="*{password}" lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">
        </div>
    </div>
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="password" name="repassword" th:field="*{repassword}" lay-verify="required" placeholder="确认密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-inline login-btn">
                <button class="layui-btn" lay-submit >注册</button>
            </div>
        </div>
        <hr/>
        <p><a th:href="@{/login}" class="fl">已有账号?立即登陆</a></p><br/><br/>
        <p><a th:text="${msg}" class="fl" style="color:red"></a></p>
    </form>
</div>




</body>
</html>